//
//  DesignView.m
//  UIComprehensive
//
//  Created by lanou3g on 16/1/27.
//  Copyright © 2016年 徐强. All rights reserved.
//

#import "DesignView.h"

@implementation DesignView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllView];
    }
    return self;
}

- (void)addAllView{
    
    self.backgroundColor = [UIColor grayColor];
    
    self.targetButton = [[TargetAction alloc]initWithFrame:CGRectMake(60, 60, 200, 50)];
    self.targetButton.backgroundColor = [UIColor redColor];
    [self addSubview:self.targetButton];
    
    
    self.delegateButton = [[DelegateFunc alloc]initWithFrame:CGRectMake(60, 300, 200, 60)];
    self.delegateButton.backgroundColor = [UIColor brownColor];
    [self addSubview:self.delegateButton];
    
    
}




@end
